#define _CRT_SECURE_NO_WARNINGS 1
#include"listnode.h"

void Test1()
{
	LTNode* plist = LTInit();
	LTInsert(plist->next, 1);
	LTInsert(plist->next, 2);
	LTInsert(plist->next, 3);
	LTInsert(plist->next, 4);
	LTPrint(plist);
	LTInsert(plist, 5);
	LTInsert(plist, 6);
	LTInsert(plist, 7);
	LTInsert(plist, 8);
	LTPrint(plist);
	LTErase(plist->next);
	LTPrint(plist);
	LTErase(plist->prev);
	LTPrint(plist);
	LTPopBack(plist);
	LTPopFront(plist);
	LTPrint(plist);
	LTPushBack(plist,9);
	LTPushFront(plist, 10);
	LTPrint(plist);
	LTDestroy(plist);
}


int main()
{
	Test1();

	return 0;
}